package org.price.sql.repo.session.permissions;

import java.security.Permission;

public class WritePermission extends Permission {

    private static final long serialVersionUID = -4382658238321586855L;

    private static final String WRITE = "write";

    public WritePermission() {
        super(WRITE);
    }

    @Override
    public boolean equals(Object obj) {
        if (obj != null && obj instanceof WritePermission) {
            return true;
        }

        return false;
    }

    @Override
    public String getActions() {
        return WRITE;
    }

    @Override
    public int hashCode() {
        return WRITE.hashCode();
    }

    @Override
    public boolean implies(Permission p) {
        return false;
    }

}
